package com.gw.business.analysis.model;

import java.util.Date;

import com.gw.platform.model.BaseModel;
import com.gw.platform.util.StringUtils;

public class UserTrackDataDetail implements BaseModel{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 387209498668127604L;
	private int id;
	private String userId;//用户id
	private Date startTime; //开始时间
	private Date endTime;//结束时间
	private String timeLength;//时长
	private String behaviorDetailType;//行为 访问(1)、咨询(2)、模拟开户(3)、真实开户(4)、首次入金(5) 
	private String behaviorType;//假如是模拟开户、真实开户、首次入金就往里面插入对应的帐号
	private String ip;//访问ip
	private String utmcsr;//广告来源
	private String utmctr;//用户输入关键词
	private String markWords;//标记关键词
	private String utmccn;//广告系列
	private String utmcct;//广告组
	private String utmcmd;//广告媒介
	private int browserCount;//页面浏览数
	private int visitCount;//访问次数
	private int advisoryCount;//咨询次数
	private int demoCount;//模拟开户总数
	private int realCount;//真实开户总数+
    private int depositCount;//首次入金数
	private String url;//访问url
	private int sort;//排序字段
	private String isSend;//是否已经发送邮件
	private int platformType;
	
	private String mark;

    public String getBehaviorTemp() {
	     StringBuffer befavior=new StringBuffer();
	     if(!StringUtils.isEmpty(this.getBehaviorDetailType())){
	        
	         if(this.getBehaviorDetailType().contains("1")){
	             if(!StringUtils.isEmpty(this.getBehaviorType())){
	                 befavior.append(this.getBehaviorType());
	             }else{
	             befavior.append("访问");
	             }
	         }
	         if(this.getBehaviorDetailType().contains("2")){
	             
	             befavior.append("咨询");
	             if(!StringUtils.isEmpty(this.getBehaviorType())){
	                  befavior.append(",").append(this.getBehaviorType());
	             }
	             
             }  
	     }else {
	         befavior.append(this.getBehaviorType());
	     }
	     
	        return befavior.toString();
	    }
    
    public String getIsSend() {
        return isSend;
    }

    
    public void setIsSend(String isSend) {
        this.isSend = isSend;
    }
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public Date getStartTime() {
		return startTime;
	}
	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}
	public Date getEndTime() {
		return endTime;
	}
	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}
	public String getTimeLength() {
		return timeLength;
	}
	public void setTimeLength(String timeLength) {
		this.timeLength = timeLength;
	}
	public String getBehaviorDetailType() {
		return behaviorDetailType;
	}
	public void setBehaviorDetailType(String behaviorDetailType) {
		this.behaviorDetailType = behaviorDetailType;
	}
	public String getBehaviorType() {
		return behaviorType;
	}
	public void setBehaviorType(String behaviorType) {
		this.behaviorType = behaviorType;
	}
	public String getIp() {
		return ip;
	}
	public void setIp(String ip) {
		this.ip = ip;
	}
	public String getUtmcsr() {
		return utmcsr;
	}
	public void setUtmcsr(String utmcsr) {
		this.utmcsr = utmcsr;
	}
	public String getUtmctr() {
		return utmctr;
	}
	public void setUtmctr(String utmctr) {
		this.utmctr = utmctr;
	}
	public String getMarkWords() {
		return markWords;
	}
	public void setMarkWords(String markWords) {
		this.markWords = markWords;
	}
	public String getUtmccn() {
		return utmccn;
	}
	public void setUtmccn(String utmccn) {
		this.utmccn = utmccn;
	}
	public String getUtmcct() {
		return utmcct;
	}
	public void setUtmcct(String utmcct) {
		this.utmcct = utmcct;
	}
	public String getUtmcmd() {
		return utmcmd;
	}
	public void setUtmcmd(String utmcmd) {
		this.utmcmd = utmcmd;
	}
	public int getBrowserCount() {
		return browserCount;
	}
	public void setBrowserCount(int browserCount) {
		this.browserCount = browserCount;
	}
	public int getVisitCount() {
		return visitCount;
	}
	public void setVisitCount(int visitCount) {
		this.visitCount = visitCount;
	}
	public int getAdvisoryCount() {
		return advisoryCount;
	}
	public void setAdvisoryCount(int advisoryCount) {
		this.advisoryCount = advisoryCount;
	}
	public int getDemoCount() {
		return demoCount;
	}
	public void setDemoCount(int demoCount) {
		this.demoCount = demoCount;
	}
	public int getRealCount() {
		return realCount;
	}
	public void setRealCount(int realCount) {
		this.realCount = realCount;
	}
	public int getDepositCount() {
		return depositCount;
	}
	public void setDepositCount(int depositCount) {
		this.depositCount = depositCount;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public int getSort() {
		return sort;
	}
	public void setSort(int sort) {
		this.sort = sort;
	}

	public String getMark() {
		return mark;
	}

	public void setMark(String mark) {
		this.mark = mark;
	}

	public int getPlatformType() {
		return platformType;
	}

	public void setPlatformType(int platformType) {
		this.platformType = platformType;
	}
}
